//
//  ShopListViewContrller.h
//  uneed
//
//  Created by apple on 4/11/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "IconDownloader.h"
#import "Shop.h"
#import "ShopAddViewCtrl.h"
#import "BasicTableViewCtrl.h"

@interface ShopListViewContrller : BasicTableViewCtrl <IconDownloaderDelegate> {
    
    NSMutableArray *shoplists;
    NSMutableDictionary *imageDownloadsInProgress;  // the set of IconDownloader objects for each app
	NSMutableDictionary *shopClasses;
	
	IBOutlet UILabel *shopName;  
    IBOutlet UILabel *shopSubName;  
	IBOutlet UIImageView *shopImage;
	IBOutlet UILabel *distance;
	BOOL useDarkBackground;
	UITableViewCell *tvCell;
	int page;
	BOOL page_isend;
	BOOL is_loaddate;

}

@property BOOL useDarkBackground;

@property(nonatomic,retain) NSMutableArray *shoplists;
@property(nonatomic,retain) UILabel *shopName;
@property(nonatomic,retain) UILabel *shopSubName;
@property(nonatomic,retain) UILabel *distance;
@property (nonatomic,retain) UIImageView *shopImage;
@property(nonatomic,retain)IBOutlet UITableViewCell *tvCell;

@property (nonatomic, retain) NSMutableDictionary *imageDownloadsInProgress;
@property (nonatomic, retain) NSMutableDictionary *shopClasses;

- (void)appImageDidLoad:(NSIndexPath *)indexPath;
- (void)actShopAdd;

-(void)  errorCallback:(NSArray*) error;

/*数据下载完毕 */
-(void)  completedCallback:(NSArray*) data;

@end
